package com.itheima.tanhua.api;

import com.itheima.tanhua.mongo.FocusUser;

/**
 * @author Lff
 * @date 2022/4/4
 * <p>
 * 用户关注操作
 */
public interface FocusUserApi {
    /**
     * 检查该关注信息是否存在
     *
     * @param userId
     * @param followUserId
     * @return
     */
    boolean hasFocus(Long userId, Long followUserId);

    /**
     * 保存用户关注信息
     *
     * @param focusUser
     * @return
     */
    String save(FocusUser focusUser);

    /**
     * 取消关注
     *
     * @param userId
     * @param followUserId
     * @return
     */
    public boolean delete(Long userId, Long followUserId);
}
